import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '重点领域',
    align: "center",
    dataIndex: 'focusAreas_dictText'
  },
  {
    title: '查找本领域存在的突出问题',
    align: "center",
    dataIndex: 'problem'
  },
  {
    title: '落实措施',
    align: "center",
    dataIndex: 'measures'
  },
  {
    title: '完成时间',
    align: "center",
    dataIndex: 'completionTime',
    customRender:({text}) =>{
      text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
      return text;
    },
  },
  {
    title: '落实情况',
    align: "center",
    dataIndex: 'implementationStatus'
  },
  {
    title: '责任部门',
    align: "center",
    dataIndex: 'departName_dictText'
  },
  {
    title: '监督工作开展情况',
    align: "center",
    dataIndex: 'workProgress'
  },
  {
    title: '发现问题及意见建议',
    align: "center",
    dataIndex: 'issuesSuggestions'
  },
  {
    title: '监督成效',
    align: "center",
    dataIndex: 'monitoringEffectiveness'
  },
];

// 高级查询数据
export const superQuerySchema = {
  focusAreas: {title: '重点领域',order: 0,view: 'list', type: 'string',dictCode: 'focus_areas',},
  problem: {title: '查找本领域存在的突出问题',order: 1,view: 'textarea', type: 'string',},
  measures: {title: '落实措施',order: 2,view: 'textarea', type: 'string',},
  completionTime: {title: '完成时间',order: 3,view: 'date', type: 'string',},
  implementationStatus: {title: '落实情况',order: 4,view: 'textarea', type: 'string',},
  departName: {title: '责任部门',order: 5,view: 'list', type: 'string',dictCode: 'company_department ',},
  workProgress: {title: '监督工作开展情况',order: 6,view: 'textarea', type: 'string',},
  issuesSuggestions: {title: '发现问题及意见建议',order: 7,view: 'textarea', type: 'string',},
  monitoringEffectiveness: {title: '监督成效',order: 8,view: 'textarea', type: 'string',},
};
